<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libschc: jsmn.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">libschc
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">jsmn.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;stddef.h&gt;</code><br />
<code>#include &quot;<a class="el" href="schc_8h_source.html">schc.h</a>&quot;</code><br />
</div>
<p><a href="jsmn_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structjsmntok__t.html">jsmntok_t</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">JSON token description.  <a href="structjsmntok__t.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structjsmn__parser.html">jsmn_parser</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">JSON parser.  <a href="structjsmn__parser.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:a065320719769f9dc1fbe30094e52802f"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="jsmn_8h.html#a065320719769f9dc1fbe30094e52802f">jsmntype_t</a> { <br />
&#160;&#160;<a class="el" href="jsmn_8h.html#a065320719769f9dc1fbe30094e52802fa7bc5faeddd33197250cf352af984f185">JSMN_UNDEFINED</a> = 0, 
<a class="el" href="jsmn_8h.html#a065320719769f9dc1fbe30094e52802fa416d6e733082bedc1166f0d66f571867">JSMN_OBJECT</a> = 1, 
<a class="el" href="jsmn_8h.html#a065320719769f9dc1fbe30094e52802fabc4c47216dacf36bd4f64ac3d649d471">JSMN_ARRAY</a> = 2, 
<a class="el" href="jsmn_8h.html#a065320719769f9dc1fbe30094e52802fad4ea6277c135d9d3377bf8b719779539">JSMN_STRING</a> = 3, 
<br />
&#160;&#160;<a class="el" href="jsmn_8h.html#a065320719769f9dc1fbe30094e52802fa2550c93fe929f81f30ea9b629ed98742">JSMN_PRIMITIVE</a> = 4
<br />
 }</td></tr>
<tr class="memdesc:a065320719769f9dc1fbe30094e52802f"><td class="mdescLeft">&#160;</td><td class="mdescRight">JSON type identifier.  <a href="jsmn_8h.html#a065320719769f9dc1fbe30094e52802f">More...</a><br /></td></tr>
<tr class="separator:a065320719769f9dc1fbe30094e52802f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afbbe22e63007677ec9e7837b5c1b80ea"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="jsmn_8h.html#afbbe22e63007677ec9e7837b5c1b80ea">jsmnerr</a> { <a class="el" href="jsmn_8h.html#afbbe22e63007677ec9e7837b5c1b80eaafa350a2c19cc5fddbfb7c90309d3fe41">JSMN_ERROR_NOMEM</a> = -1, 
<a class="el" href="jsmn_8h.html#afbbe22e63007677ec9e7837b5c1b80eaa3297b1c54d926ce497b7a20530689171">JSMN_ERROR_INVAL</a> = -2, 
<a class="el" href="jsmn_8h.html#afbbe22e63007677ec9e7837b5c1b80eaa851a0e75343c14a13c6893b3727ead16">JSMN_ERROR_PART</a> = -3
 }</td></tr>
<tr class="separator:afbbe22e63007677ec9e7837b5c1b80ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a8d4a8b3ce5c3d600feea38615b5f9aa6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="jsmn_8h.html#a8d4a8b3ce5c3d600feea38615b5f9aa6">jsmn_init</a> (<a class="el" href="structjsmn__parser.html">jsmn_parser</a> *parser)</td></tr>
<tr class="memdesc:a8d4a8b3ce5c3d600feea38615b5f9aa6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create JSON parser over an array of tokens.  <a href="jsmn_8h.html#a8d4a8b3ce5c3d600feea38615b5f9aa6">More...</a><br /></td></tr>
<tr class="separator:a8d4a8b3ce5c3d600feea38615b5f9aa6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a774f985a9750a10c7e88304e30191e03"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="jsmn_8h.html#a774f985a9750a10c7e88304e30191e03">jsmn_parse</a> (<a class="el" href="structjsmn__parser.html">jsmn_parser</a> *parser, const char *js, size_t len, <a class="el" href="structjsmntok__t.html">jsmntok_t</a> *tokens, unsigned int num_tokens)</td></tr>
<tr class="memdesc:a774f985a9750a10c7e88304e30191e03"><td class="mdescLeft">&#160;</td><td class="mdescRight">Run JSON parser.  <a href="jsmn_8h.html#a774f985a9750a10c7e88304e30191e03">More...</a><br /></td></tr>
<tr class="separator:a774f985a9750a10c7e88304e30191e03"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="afbbe22e63007677ec9e7837b5c1b80ea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afbbe22e63007677ec9e7837b5c1b80ea">&#9670;&nbsp;</a></span>jsmnerr</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="jsmn_8h.html#afbbe22e63007677ec9e7837b5c1b80ea">jsmnerr</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="afbbe22e63007677ec9e7837b5c1b80eaafa350a2c19cc5fddbfb7c90309d3fe41"></a>JSMN_ERROR_NOMEM&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="afbbe22e63007677ec9e7837b5c1b80eaa3297b1c54d926ce497b7a20530689171"></a>JSMN_ERROR_INVAL&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="afbbe22e63007677ec9e7837b5c1b80eaa851a0e75343c14a13c6893b3727ead16"></a>JSMN_ERROR_PART&#160;</td><td class="fielddoc"></td></tr>
</table>

</div>
</div>
<a id="a065320719769f9dc1fbe30094e52802f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a065320719769f9dc1fbe30094e52802f">&#9670;&nbsp;</a></span>jsmntype_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="jsmn_8h.html#a065320719769f9dc1fbe30094e52802f">jsmntype_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>JSON type identifier. </p>
<p>Basic types are: o Object o Array o String o Other primitive: number, boolean (true/false) or null </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a065320719769f9dc1fbe30094e52802fa7bc5faeddd33197250cf352af984f185"></a>JSMN_UNDEFINED&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a065320719769f9dc1fbe30094e52802fa416d6e733082bedc1166f0d66f571867"></a>JSMN_OBJECT&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a065320719769f9dc1fbe30094e52802fabc4c47216dacf36bd4f64ac3d649d471"></a>JSMN_ARRAY&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a065320719769f9dc1fbe30094e52802fad4ea6277c135d9d3377bf8b719779539"></a>JSMN_STRING&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a065320719769f9dc1fbe30094e52802fa2550c93fe929f81f30ea9b629ed98742"></a>JSMN_PRIMITIVE&#160;</td><td class="fielddoc"></td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="a8d4a8b3ce5c3d600feea38615b5f9aa6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8d4a8b3ce5c3d600feea38615b5f9aa6">&#9670;&nbsp;</a></span>jsmn_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void jsmn_init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structjsmn__parser.html">jsmn_parser</a> *&#160;</td>
          <td class="paramname"><em>parser</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create JSON parser over an array of tokens. </p>
<p>Create JSON parser over an array of tokens. </p>

</div>
</div>
<a id="a774f985a9750a10c7e88304e30191e03"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a774f985a9750a10c7e88304e30191e03">&#9670;&nbsp;</a></span>jsmn_parse()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int jsmn_parse </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structjsmn__parser.html">jsmn_parser</a> *&#160;</td>
          <td class="paramname"><em>parser</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>js</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>len</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structjsmntok__t.html">jsmntok_t</a> *&#160;</td>
          <td class="paramname"><em>tokens</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>num_tokens</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Run JSON parser. </p>
<p>It parses a JSON data string into and array of tokens, each describing a single JSON object.</p>
<p>Run JSON parser. </p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
